home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1998 / MacHack 1998.toast / Papers / OS Shell in Java / Facade / DesktopFrameItem.java < prev    next >
Encoding:
Java Source  |  1998-06-18  |  1.1 KB  |  58 lines  |  [TEXT/dosa]

  1. //    DesktopFrameItem.java : this is a Java source code file for the program Facade.
  2. //    Copyright 1998, Andrew S. Downs
  3. //    andrew.downs@tulane.edu
  4. //
  5. //    This source code is distributed as freeware.
  6. //    Just keep this author information in the file.  Enjoy!
  7.  
  8. import java.awt.*;
  9. import java.awt.event.*;
  10. import java.io.*;
  11. import java.util.*;
  12. import com.sun.java.swing.*;
  13.  
  14. public class DesktopFrameItem extends JLabel /*DesktopComponent*/ implements Serializable {
  15.     boolean select = false;
  16.         
  17.     String label;
  18.     String path;
  19.     String modDate;
  20.     
  21.     DesktopFrameItem() {
  22.         super();
  23.     }
  24.  
  25.     public String getPath() {
  26.         return this.path;
  27.     }
  28.     
  29.     public void setPath( String s ) {
  30.         this.path = s;
  31.     }
  32.  
  33.     public String getLabel() {
  34.         return this.label;
  35.     }
  36.     
  37.     public void setLabel( String s ) {
  38.         this.label = s;
  39.     }
  40.  
  41.     public String getModDate() {
  42.         return this.modDate;
  43.     }
  44.     
  45.     public void setModDate( String s ) {
  46.         this.modDate = s;
  47.     }
  48.  
  49.     public boolean getSelect() {
  50.         return this.select;
  51.     }
  52.     
  53.     public void setSelect( boolean b ) {
  54.         this.select = b;
  55.     }
  56. }
  57.  
  58.